import 'package:loxen/api/api.dart';

mixin StatisticsMixin {
  void statisticeIdeaArticle(String id) {
    ApiService.statistics('idea-article', id).listen((event) {});
  }

  void statisticeStudyKnowledge(String id) {
    ApiService.statistics('study-knowledge', id).listen((event) {});
  }

  void statisticeStudyBook(String id) {
    ApiService.statistics('study-book', id).listen((event) {});
  }

  void statisticeStudyCase(String id) {
    ApiService.statistics('study-case', id).listen((event) {});
  }

  void statisticeMaterialProduct(String id) {
    ApiService.statistics('material-product', id).listen((event) {});
  }
}
